package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 供应商
 */
public interface SupplierDao {
    /**
     * 分页查询供应商
     * @param supplierName
     * @return
     */
    List<Supplier> selectSupplierPage(@Param("supplierName") String supplierName);



    /**
     * 供应商添加或修改
     * @param supplier
     */
//    void save(@Param("supplierName") String supplierName,
//              @Param("contacts") String contacts,
//              @Param("phoneNumber")String phoneNumber,
//              @Param("address")String address,
//              @Param("remarks")String remarks);
    void save(@Param("supplier") Supplier supplier);

    void UpdateSupplierById(@Param("supplier") Supplier supplier);

    void deleteSupplierById(@Param("id") String id);
}
